namespace CSharpPro._1021;

public class Student(int i)
{
    public Student() : this()
    {
        throw new NotImplementedException();
    }

    public string Name { get; set; } 
    public int Age { get; set; }     
    public string Gender { get; set; } 
    public string Major { get; set; }  
    public void DisplayInfo()
    {
        Console.WriteLine($"Name: {Name}");
        Console.WriteLine($"Age: {Age}");
        Console.WriteLine($"Gender: {Gender}");
        Console.WriteLine($"Major: {Major}");
    }
    
    public void UpdateInfo(string name, int age, string gender, string major)
    {
        Name = name;
        Age = age;
        Gender = gender;
        Major = major;
    }
}